# 5.设计根据QQ和密码登录的过程(QQ和密码预设为指定的值).执行结果未登录是否成功(boolean类型的值)
def info():
    user = [
        {'qq_id': '233', 'password': '183'},
        {'qq_id': '196', 'password': '199'}
    ]
    user_id = input('QQ账号: ')
    code = input('密码: ')
    for user_id in user:
        if user == user_id['qq_id']:
            return True
        else:
            return False


print(info())
